package com.cevent.community.app.system.controller.admin;/**
 * Created by Cevent on 2021/9/10.
 */

import com.cevent.community.app.common.domain.Demo;
import com.cevent.community.app.common.service.DemoService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author cevent
 * @description 接口测试
 * @date 2021/9/10 17:33
 */
@RestController
public class FirstController {
    private static final Logger LOG= LoggerFactory.getLogger(FirstController.class);

    @Autowired
    private DemoService demoService;

    @RequestMapping("/first")
    public String first(){
        LOG.info("进入first方法！");
        return "系统模块启动成功：hello cevent , this is system first interface API";
    }

    @RequestMapping("/getDemo")
    public List<Demo> getDemo(){
        return demoService.demoList();
    }
}
